<?php
    include_once('../includes/common.inc.php'); 
    include_once("../dal/bookDAL.php");
    if(isset($_GET["book_id"]))
    {
        $bookDAL = new BookDAL();
        if($bookDAL->deleteBook($_GET["book_id"]))
        {
            header("Location:books.php?message=Bạn đã delete sách thành công");
        }
        else
        {
            header("Location:books.php?error_message=Delete sách thất bại");
        }
    }
?>